const fs = require('fs')
const path = require('path')

module.exports = {
    saveFile(filename, content, url = '../buildFileTask/static/temp') {
        try {
            fs.writeFileSync(path.join(__dirname,`${url}/${filename}`), content)
        } catch(err) {
            console.log(err)
        }
    }
}